﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using WeShare.WeiXin.Common;
using WeShare.WeiXin.Mp;

namespace WebMvcTest.Controllers
{
    public class WxController : ApiController
    {
        [HttpGet, HttpPost]
        public HttpResponseMessage MessageHandler()
        {
            var result = HttpContext.Current.Register<MsgHandler>(new EnterParamConfig
            {
                appid = "wxd7008116979a800d",
                EncodingAESKey = "",
                token = "weixintoken"
            });
            return new HttpResponseMessage { Content = new StringContent(result) };
        }
    }
}
